package com.molin.IOtest.bytestreamTest.fileoutputStreamTest;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo5 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=null;
        try {
            String path="D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\bytestreamTest\\a.txt";
            fos = new FileOutputStream(path);
            fos.write(97);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } finally {
            if(fos!=null){
                fos.close();
            }
        }
    }
}
